package cn.v2tila.rsosa.student.service.serviceImpl;

import cn.v2tila.rsosa.student.entity.VitaeImgsEntity;
import cn.v2tila.rsosa.student.jpa.VitaeImgsJPA;
import cn.v2tila.rsosa.student.service.VitaeImgsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author v2tila on 0:50 2019/4/1
 */
@Service
public class VitaeImgsServiceImpl implements VitaeImgsService {
    @Autowired
    private VitaeImgsJPA vitaeImgsJPA;
    @Override
    public VitaeImgsEntity saveAndFlush(VitaeImgsEntity vitaeImgsEntity) {
        return vitaeImgsJPA.saveAndFlush(vitaeImgsEntity);
    }

    @Override
    public List<VitaeImgsEntity> findByVitaeId(Integer vitaeId) {
        return vitaeImgsJPA.findByVitaeId(vitaeId);
    }

}
